/*
 * @Author: licheng
 * @Date: 2024-01-30 17:16:18
 * @LastEditors: licheng
 * @LastEditTime: 2024-02-01 16:41:04
 * @Descripttion:
 */

/**
 * 地图添加多个点方法
 * @param data
 */
export const useAddMapPoint = <T>(data: any) => {
  ;(window as any).mapGlobel.addPoint(data)
}

/**
 * 移除单个图层
 * @param layerName 图层名称
 */
export const useRemovePoint = <T>(layerName: any) => {
  ;(window as any).mapGlobel.removePoint(layerName)
}

/**
 * 移除全部图层
 */
export const useRemoveAll = () => {
  ;(window as any).mapGlobel.removeAllOverlay()
}
